/*
 * @Description:
 * @Author: zhaolei
 * @Date: 2023-04-13 10:45:27
 */
export const tableOption = () => {
  return {
    ...window.$crudMixins.tableOptions,
    addBtn: false,
    editBtn: false,
    delBtn: false,
    menuWidth: 260,
    labelWidth: 140,
    emptyBtn: false,
    submitBtn: false,
    detail: true,
    group: [
      {
        label: '宠物信息',
        prop: 'group2',
        column: [
          {
            label: '预约宠物昵称',
            prop: 'petName',
          },
          {
            label: '预约宠物编号',
            prop: 'code',
          },
          {
            label: '宠物性别',
            detail: true,
            prop: 'gender',
            type: 'select',
            dicUrl: '/admin/dict/type/pet_sex',
          },
          {
            label: '宠物性格标签',
            prop: 'personality',
          },
          {
            label: '所属爱心收容站',
            prop: 'baseId',
            dicUrl: '/core/base/list',
            type: 'select',
            props: {
              label: 'name',
              value: 'id',
            },
            detail: true,
          },
          {
            label: '收容站位置',
            prop: 'baseAddress',
            detail: true,
          },
        ],
      },
      {
        label: '预约人信息',
        prop: 'group1',
        labelWidth: 110,
        column: [
          {
            label: '预约人姓名',
            prop: 'userNickName',
          },
          {
            label: '手机号',
            prop: 'phone',
          },
          {
            label: '看宠日期',
            prop: 'reserveTime',
            type: 'date',
            format: 'yyyy-MM-dd',
            valueFormat: 'yyyy-MM-dd',
            search: true,
            width: 160,
            searchRange: true,
          },
          {
            label: '申请日期',
            prop: 'createTime',
            type: 'date',
            // format: 'yyyy-MM-dd HH:mm:ss',
            // valueFormat: 'yyyy-MM-dd HH:mm:ss',
            format: 'yyyy-MM-dd',
            valueFormat: 'yyyy-MM-dd',
            search: true,
            width: 160,
            searchRange: true,
          },
        ],
      },
    ],
  };
};
